package a66weding.com.jiehuntong.beans;

import android.support.annotation.NonNull;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.util.HashMap;

import a66weding.com.jiehuntong.http.OnNetResultListener;

/**
 * @version :
 * @creator : AxDu
 * @create-time : 2016/5/25
 * @description :
 */
public class HttpRequestBean2 implements Serializable {


    private int requestMethod;
    private String url;
    private OnNetResultListener listener;
    private Type t;
    private Class clazz;
    private HashMap<String,String> paramsMap;
    private String requestCode;
    private int weddingProcessClassSysID;


    public HttpRequestBean2() {
    }

    public HttpRequestBean2(@NonNull int requestMethod, @NonNull String url,
                            @NonNull OnNetResultListener listener, Class t, String requestCode, HashMap<String,String> paramsMap) {
        this.requestMethod = requestMethod;
        this.url = url;
        this.listener = listener;
        this.clazz = t;
        this.requestCode = requestCode;
        this.paramsMap=paramsMap;
    }
    public HttpRequestBean2(@NonNull int requestMethod, @NonNull String url, @NonNull OnNetResultListener listener, Class t, String requestCode) {
        this.requestMethod = requestMethod;
        this.url = url;
        this.listener = listener;
        this.clazz= t;
        this.requestCode = requestCode;
    }






    public int getRequestMethod() {
        return requestMethod;
    }

    public void setRequestMethod(@NonNull int requestMethod) {
        this.requestMethod = requestMethod;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public OnNetResultListener getListener() {
        return listener;
    }

    public void setListener(OnNetResultListener listener) {
        this.listener = listener;
    }

    public Type getT() {
        return t;
    }

    public void setT(Type t) {
        this.t = t;
    }

    public HashMap getParamsMap() {
        return paramsMap;
    }

    public void setParamsMap(HashMap paramsMap) {
        this.paramsMap = paramsMap;
    }

    public String getRequestCode() {
        return requestCode;
    }

    public void setRequestCode(String requestCode) {
        this.requestCode = requestCode;
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    public int getWeddingProcessClassSysID() {
        return weddingProcessClassSysID;
    }

    public void setWeddingProcessClassSysID(int weddingProcessClassSysID) {
        this.weddingProcessClassSysID = weddingProcessClassSysID;
    }



    @Override
    public String toString() {
        return "HttpRequestBean{" +
                "requestMethod=" + requestMethod +
                ", url='" + url + '\'' +
                ", listener=" + listener +
                ", t=" + t +
                ", paramsMap=" + paramsMap +
                ", requestCode='" + requestCode + '\'' +
                '}';
    }
}
